pkg-config,
cmake,
git,
- python-dulwich,
- python-pytoml,
+ cargo (>= 0.7.0) <stage2>,
+ python-dulwich <!stage2>,
+ python-pytoml <!stage2>,
ca-certificates,
bash-completion,
libhttp-parser-dev,
./debian/cargo-vendor-pack.py
override_dh_auto_build:
+ifneq ($(filter stage2,$(DEB_BUILD_PROFILES)),)
+ ln -s `which cargo` $(CURDIR)/cargo-stage0
+ # Workaround for https://github.com/rust-lang/cargo/issues/1423
+ mv $(DEPSDIR) $(CURDIR)/.deps
+else
# Bootstrap cargo stage0
./debian/bootstrap.py \
--no-clean \
--target=$(DEB_TARGET_RUST_TYPE)
# Workaround for https://github.com/rust-lang/cargo/issues/1423
mv $(DEPSDIR) $(CURDIR)/.deps
- ln -s `find $(CURDIR)/.deps -name 'cargo-*' -type f -executable` $(CURDIR)/cargo-stage0
+ ln -s `find $(CURDIR)/.deps -name 'cargo-*' -type f -executable` $(CURDIR)/cargo-stage0
+endif
# Configure to build cargo using the just-built stage0
./configure \
--prefix=/usr \